import axios from '@/libs/request'
/**
 * 获取列表
 * @param data
 * @returns {*}
 */
export const getPeopleList = (data) => {
  return axios.request({
    url: '/api/as/ctcm/people/getPeopleList',
    data: data,
    type: 'post'
  })
}
// 添加编辑
export const savePeople = (data) => {
  return axios.request({
    url: '/api/as/ctcm/people/savePeople',
    data: data,
    type: 'post'
  })
}
// 删除
export const deletePeople = (data) => {
  return axios.request({
    url: '/api/as/ctcm/people/deletePeople',
    data: data,
    type: 'post'
  })
}
// 详情
export const getPeopleById = (data) => {
  return axios.request({
    url: '/api/as/ctcm/people/getPeopleById',
    data: data,
    type: 'post'
  })
}
// 批量导入数据
export const saveExcelData = (data) => {
  return axios.request({
    // url: '/api/ac/ctcm/workerPermitService/insertWorkinfoList',
    url: '/api/ac/ctcm/workerPermitService/saveExcelData',
    data: data,
    type: 'post'
  })
}
// 数据导入前身份证校验
export const validateUniqueCardnoList = (data) => {
  return axios.request({
    url: '/api/as/ctcm/people/validateUniqueCardnoList',
    data: data,
    type: 'post'
  })
}
